//
//  comInfo.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/7.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit
// MARK: - 商品信息
class comInfo: NSObject {
    // MARK: - 属性
    var CON : String?  = "---"     // 商品名称
    var COI : String?     = "---"  // 商品代码
    var PRC : String?   = "---"      // 昨结价
    var CTS : String?      = "---"  // 交易单位
    var OMOQ : String?    = "---"     // 单笔最大挂单数量
    var MPM : String?   = "---" // 最小变动价
    var MQM : String?  = "---"   //最小变动数量
    var IL : String?   = "---" //是否z开启标码识货
    var CQ : String?   = "---" //交收交易单位换算
    var CS : String?   = "---"  // 商品状态
    var SPU : String?  = "---"   // 当日涨幅上限
    var LTD : String?   = "---"  // 交易起始日
    
    // MARK: - 自定义构造函数
    init(dict : [String : AnyObject]) {
        super.init()
        setValuesForKeys(dict)
        //print(dict)
        COI = (dict["COI"] as? String)
        CON = (dict["CON"] as? String)
        PRC = (dict["PRC"] as? String)
        CTS = (dict["CTS"] as? String)
        OMOQ = (dict["OMOQ"] as? String)
        MPM = (dict["MPM"] as? String)
        MQM = (dict["MQM"] as? String)
        IL = (dict["IL"] as? String)
        CQ = (dict["CQ"] as? String)
        CS = (dict["CS"] as? String)
        SPU = (dict["SPU"] as? String)
        LTD = (dict["LTD"] as? String)
        
    }
    // 重写
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
